import axios from 'axios';
import * as url from '../../../http/api'
const state = {

}
const actions = {
    getDishData({commit},obj){
        axios({
            url:url.getDishData,
            method:'post',
            data:obj
        }).then(res=>{
            console.log(res,'getDishData')
        })
    },
    searchDishName({commit},obj){
        console.log(obj,'我是name');
        axios({
            url:'',
            method:'post',
            data:obj,
        }).then(res=>{
            console.log(res)
        })
    },
    searchDishType({commit},obj){
        console.log(obj,'我是name');
        axios({
            url:'',
            method:'post',
            data:obj,
        }).then(res=>{
            console.log(res)
        })
    }
}
const mutations = {

}
const getters = {

}
export default{
    state,
    actions,
    mutations,
    getters,
}